package com.hao.wms.service.impl;

import com.hao.wms.dao.IDepartmentDao;
import com.hao.wms.domain.Department;
import com.hao.wms.query.PageResult;
import com.hao.wms.query.QueryObject;
import com.hao.wms.service.IDepartmentService;

import java.util.List;

public class DepartmentServiceImpl implements IDepartmentService {
	private IDepartmentDao dao;
	

	public void setDao(IDepartmentDao dao) {
		this.dao = dao;
	}

	@Override
	public void save(Department e) {
		dao.save(e);

	}

	@Override
	public void update(Department e) {
		dao.update(e);

	}

	@Override
	public void delete(Department e) {
		dao.delete(e);

	}

	@Override
	public Department get(Long id) {
		return dao.get(id);
	}

	@Override
	public List<Department> list() {
		return dao.list();
	}

	@Override
	public PageResult query(QueryObject qo) {
		return dao.query(qo);
	}
	
	

}
